Adding some more judges, here and there.
[andmenj-acm.git] / UVa / 11388 - GCD LCM / p11388.cpp
blob502a689b3bcc0c25a1ba0606ba20f607ded4d62c
1 #include <iostream>
3 using namespace std;
5 int main(){
6 int t;
7 cin >> t;
8 while(t--){
9 unsigned int g,l;
10 cin >> g >> l;
11 if (g > l || l % g != 0)
12 cout << "-1\n";
13 else
14 cout << g << " " << l << "\n";